home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form SessionForm
- BackColor = &H00C0C0C0&
- Caption = "Mail X Example Read Msg"
- ClientHeight = 4020
- ClientLeft = 1245
- ClientTop = 3330
- ClientWidth = 5490
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 4395
- Left = 1200
- LinkTopic = "Form2"
- ScaleHeight = 4020
- ScaleWidth = 5490
- Top = 3000
- Width = 5580
- Begin VB.ListBox MsgList
- Height = 2955
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 5175
- End
- Begin VB.CommandButton BtnOpen
- Caption = "Open Msg"
- Height = 375
- Left = 3120
- TabIndex = 1
- Top = 3480
- Width = 1335
- End
- Begin VB.CommandButton BtnEnd
- Caption = "End"
- Height = 375
- Left = 1080
- TabIndex = 0
- Top = 3480
- Width = 1335
- End
- Begin Mailx16Lib.MSess MSess1
- Left = 2520
- Top = 3480
- _Version = 65541
- _ExtentX = 900
- _ExtentY = 900
- _StockProps = 0
- End
- Begin Mailx16Lib.MMsg MMsg1
- Left = 4920
- Top = 3480
- _Version = 65541
- _ExtentX = 900
- _ExtentY = 900
- _StockProps = 0
- DisplayErrors = 0 'False
- BindString = "MSess1"
- End
- Begin Mailx16Lib.MForm MForm1
- Left = 15
- Top = 3720
- _Version = 65541
- _ExtentX = 3413
- _ExtentY = 500
- _StockProps = 0
- MXFormName = "FormTag1"
- End
- Attribute VB_Name = "SessionForm"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub BtnEnd_Click()
- End
- End Sub
- Private Sub BtnOpen_Click()
- Index = MsgList.ListIndex
- If Index <> -1 Then
- Load MsgForm
- MsgForm.MMsg1.FetchMsg = Index + 1
- MsgForm.szSubject = MsgForm.MMsg1.Subject
- MsgForm.szNoteText = MsgForm.MMsg1.NoteText
- MsgForm.szTime = MsgForm.MMsg1.TimeReceived
- MsgForm.szMsgID = MsgForm.MMsg1.MsgID
- MsgForm.MReci1 = MsgForm.MMsg1
- MsgForm.szOriginator = MsgForm.MReci1.RecipientName
- MsgForm.MFile1 = MsgForm.MMsg1
- FileNum = MsgForm.MFile1.FileCount
- For Index = 1 To FileNum
- MsgForm.MFile1.FileNum = Index
- MsgForm.szFileList.AddItem MsgForm.MFile1.filename
- Next
- If FileNum > 0 Then MsgForm.szFileList.ListIndex = 0
- MsgForm.Show 1
- Else
- MsgBox "Select a Mail Message"
- End If
- End Sub
- Private Sub Command2_Click()
- End Sub
- Private Sub Form_Load()
- Load SystemX
- SystemX.MsMail = False
- SystemX.Show 1
- MSess1.Logon = True
- If MSess1.Logon = False Then End
- MsgList.Clear
- MMsg1.Action = ACTION_FINDFIRST
- Do
- If MMsg1.FetchMsg <> 0 Then
- MsgList.AddItem MMsg1.Subject
- MMsg1.Action = ACTION_FINDNEXT
- End If
- Loop While MMsg1.FetchMsg <> 0
- End Sub
-